/*************************************************************
 * File: ExampleSupport.java
 * Copyright (c) 2012
 * Author: Shaobin.Software@gmail.com Shaobin_Software@163.com 
 * Date: Jan 10, 2013
 * Description: 
 ************************************************************/

package snow.core.persistence.mybatis;

import java.util.List;

/**
 * 所有MyBatis生成的Example都要实现这个接口
 * 
 * @author Shaobin.Software@gmail.com Shaobin_Software@163.com
 * @version 1.0
 */
public interface ExampleSupport<Criteria extends CriteriaSupport<?>> {

	Criteria createCriteria();

	int getLimit();

	String getOrderByClause();

	List<Criteria> getOredCriteria();

	int getStart();

	boolean isDistinct();

	Criteria or();

	void or(Criteria criteria);

	void setDistinct(boolean distinct);

	void setOrderByClause(String orderByClause);

}
